﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for DBRecommended
/// </summary>

public class DBRecommended
{
    private List<RecommendedArt> _recommended = new List<RecommendedArt>();

	public DBRecommended()
	{
	}

    public void AddRecommended(RecommendedArt recommend)
    {
        _recommended.Add(recommend);
    }

    public void ClearRecommended()
    {
        _recommended.Clear();
    }

    public List<string> GetRecommended()
    {
        List<string> rcmd = new List<string>();

        for (int i = 0; i < _recommended.Count; i++)
        {
            rcmd.Add(_recommended.ElementAt(i).Title);
            rcmd.Add(_recommended.ElementAt(i).Description);
            rcmd.Add(_recommended.ElementAt(i).Image);
        }

        return rcmd;
    }
}